package v1

import (
	"Im/server/system/middleware"

	"github.com/gin-gonic/gin"
)

type ApiBaseVerify struct {
	Base
}

func (b Base) GetUserInfo(c *gin.Context) (*middleware.Claims, error) {

	reTokan, err := middleware.GetInfo(c)
	if err == nil {
		return reTokan, nil
	}
	return nil, err
}
